From 8c8b9ef7779b8279755c71130a5ea0da7a05fabd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Fri, 31 Jul 2009 10:21:02 +0000 Subject: [PATCH] PHP Fatal error: Call to a member function exists() on a non-object in /var/www/w/includes/OutputPage.php on line 146 --- includes/OutputPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 27e2fc063a..e19ac7da0f 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -143,7 +143,7 @@ class OutputPage { // add the title revision to the key $t = Title::newFromText( $reqSet['title'] ); // if there is no title (don't worry we just use the $wgStyleVersion var (which should be updated on relevant commits) - if( $t->exists() ){ + if( $t && $t->exists() ){ if( $t->getLatestRevID() > $this->mLatestScriptRevID ) $this->mLatestScriptRevID = $t->getLatestRevID(); } -- 2.20.1